"""
@author: 江同学呀
@file:  init_es_privy_council.py
@date: 2025/3/25 19:24
@desc: 
    
"""
from espc import ESPrivyCouncil

if __name__ == "__main__":
    espc = ESPrivyCouncil(
        logger_level="INFOR",
        hosts="http://127.0.0.1:9200",
        sniff_on_start=True,
        # es集群服务器结点连接异常时是否刷新es节点信息
        sniff_on_connection_fail=True,
        # 每60秒刷新节点信息
        sniffer_timeout=60,
        timeout=30,
        max_retries=10,
        retry_on_timeout=True,
    )
    pass

